package  network
{
	import flash.display.DisplayObjectContainer;
	import utils.StringTool;
	/**
	 * ...
	 * @author FireKnight
	 */
	public class NetWorkUrlString 
	{
		
		public function NetWorkUrlString() 
		{
			
		}
		
		public static function getUrl(_swf:DisplayObjectContainer):String
		{
			if(_swf.stage==null)return "null";
			return _swf.stage.loaderInfo.url;
		}
		
		public static function isFine(_swf:DisplayObjectContainer,txt:String):Boolean
		{
			var this_url:String = getUrl(_swf);
			return StringTool.findByRegex(this_url, txt);
		}
	}

}